﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <GraphicsScene.h>
#include <GraphicsImageItem.h>
#include <GraphicsDrawingItem.h>

class GraphicsBoxItem;

QT_BEGIN_NAMESPACE
namespace Ui {
	class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
	Q_OBJECT

public:
	Widget(QWidget* parent = nullptr);
	~Widget();
	void init();
private slots:
	void on_pushButton_clicked();
	void on_pushButton_2_clicked();
	void on_pushButton_3_clicked();
	void on_pushButton_4_clicked();
	void on_pushButton_5_clicked();
	void on_pushButton_6_clicked();
	void on_pushButton_7_pressed();
	void on_pushButton_7_released();
	void on_pushButton_7_clicked();
	void on_pushButton_8_clicked();
	void on_pushButton_9_clicked();
	void onSceneMousePos(const QPointF& scenePos);
	void onBoxMousePos(const QPointF& boxPos);
	void onImageInfo(const QString& imageInfo);
	void onBoxInfo(const QString& boxInfo);
private:
	Ui::Widget* ui;
	GraphicsScene* m_scene = nullptr;
	GraphicsBoxItem* m_box = nullptr;
	GraphicsImageItem* m_image = nullptr;
	GraphicsDrawingItem* m_drawingItem = nullptr;
};
#endif // WIDGET_H
